require('angular-mocks');

describe('Main app module',function() {
    beforeEach(angular.mock.module('app'));

    var state;

    beforeEach(inject(function($state) {
        state = $state;
    }));

    it('home state should respond to url', inject(function() {
        expect(state.href('Home')).toEqual('/');
    }));

    it('about state should respond to url', inject(function() {
        expect(state.href('About')).toEqual('/About');
    }));

    it('contact state should respond to url', inject(function() {
        expect(state.href('Contact')).toEqual('/Contact');
    }));
});
